package com.campus.counseling.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import java.util.List;

@Data
@ApiModel(description = "个人信息更新DTO")
public class ProfileUpdateDTO {
    @ApiModelProperty("用户ID")
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("真实姓名")
    private String realName;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    @ApiModelProperty("手机号码")
    private String phone;

    @Email(message = "邮箱格式不正确")
    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("性别(0:未知,1:男,2:女)")
    private Integer gender;

    @ApiModelProperty("所在地区")
    private List<String> region;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("个人简介")
    private String bio;
} 